﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Windows.Forms;

namespace Convert_DVR_MS_to_iTunes
{
    static class Program
    {
        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        [STAThread]
        static void Main(string[] args)
        {
            string sourceFolder = "";
            string destinationFolder = "";

            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            foreach (string s in args)
            {
                if (s.Substring(0, 8).ToLower() == "/source=")
                {
                    sourceFolder = s.Substring(8);
                }
                if (s.Substring(0, 13).ToLower() == "/destination=")
                {
                    destinationFolder = s.Substring(13);
                }
            }

            Application.Run(new frmMain(sourceFolder, destinationFolder));
        }
    }
}
